package com.idealighter.game.roomcard.struct.convert;

import com.idealighter.game.gamehall.dto.MemInfo;
import com.idealighter.game.roomcard.dto.RoomCardMemInfoDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface RoomCardMemInfoDtoConvert {
  public static final RoomCardMemInfoDtoConvert INSTANCE =
      Mappers.getMapper(RoomCardMemInfoDtoConvert.class);

  @Mapping(target = "byStander", ignore = true)
  @Mapping(target = "ip", ignore = true)
  @Mapping(target = "createTime", ignore = true)
  @Mapping(target = "country", ignore = true)
  @Mapping(target = "roundCount", ignore = true)
  @Mapping(target = "headUrl", ignore = true)
  RoomCardMemInfoDto bo2dto(MemInfo memInfo);
}
